<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmViewClaimType">
        <f:view>
            <p:contextMenu for="dlgViewClaimType">
                <p:menuitem value="New"
                            icon="ui-icon-search"
                            oncomplete="wgCreateClaimType.show();"
                            update=":frmCreateClaimType:dlgCreateClaimType"
                            />
                <p:menuitem value="Edit"
                            icon="ui-icon ui-icon-arrowreturnthick-1-e"
                            oncomplete="wgEditClaimType.show();"
                            update=":frmEditClaimType:dlgEditClaimType"
                            >
                </p:menuitem>
                <p:submenu label="Export" icon="ui-icon-extlink">
                    <p:submenu label="All Data">
                        <p:menuitem value="To Excel 2010"  ajax="false"  >
                            <p:dataExporter type="xls" target="dtViewClaimType"  fileName="ClaimType" />
                        </p:menuitem>
                        <p:menuitem value="To XML" ajax="false" >
                            <p:dataExporter type="xml" target="dtViewClaimType" fileName="ClaimType"/>
                        </p:menuitem>
                        <p:menuitem value="To PDF" ajax="false" >
                            <p:dataExporter type="pdf" target="dtViewClaimType" fileName="ClaimType"/>
                        </p:menuitem>
                    </p:submenu>
                    <p:submenu label="All Data in Page">
                        <p:menuitem value="To Excel 2010" ajax="false" >
                            <p:dataExporter type="xls" target="dtViewClaimType" fileName="ClaimType" pageOnly="true" />
                        </p:menuitem>
                        <p:menuitem value="To XML" ajax="false" >
                            <p:dataExporter type="xml" target="dtViewClaimType" fileName="ClaimType" pageOnly="true"/>
                        </p:menuitem>
                    </p:submenu>
                </p:submenu>
            </p:contextMenu>
            <p:focus context="dtViewClaimType"/>
            <p:dialog id="dlgViewClaimType"
                      widgetVar="wgViewClaimType"
                      header="ClaimType Information Management"
                      draggable="true"
                      showEffect="clip"
                      hideEffect="clip">
                <p:dataTable id="dtViewClaimType"
                             value="#{claimTypeManagement.list}"
                             rowKey="#{item.claimTypeId}"
                             selection="#{claimTypeManagement.selectClaimType}"
                             selectionMode="single"
                             var="item"
                             filteredValue="#{claimTypeManagement.filteredList}"
                             paginator="true"
                             rows="5">

                    <p:column sortBy="#{item.claimTypeName}"
                              filterBy="#{item.claimTypeName}"
                              filterMatchMode="contains">
                        <f:facet name="header">
                            <h:outputText value="ClaimTypeName"/>
                        </f:facet>
                        <h:outputText value="#{item.claimTypeName}"/>
                    </p:column>
                    <p:column sortBy="#{item.claimTypeDescription}"
                              filterBy="#{item.claimTypeDescription}"
                              filterMatchMode="contains">
                        <f:facet name="header">
                            <h:outputText value="ClaimTypeDescription"/>
                        </f:facet>
                        <h:outputText value="#{item.claimTypeDescription}"/>
                    </p:column>

                </p:dataTable>

            </p:dialog>
        </f:view>
    </h:form>
</html>
